//
//  AppDelegate.h
//  CoreData
//
//  Created by honey on 16/4/29.
//  Copyright © 2016年 honey. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h> //CoreData头文件

//[UIApplication shareApplication].delegate
@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;

@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext; //数据库管理对象,相当于FMDatabase对象
//模型管理对象
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
//数据存储的方法(存储位置,数据库名称)
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;

- (void)saveContext;
- (NSURL *)applicationDocumentsDirectory;


@end

